finding lcm without calculator